package org.tangolyricstagger.gui;

import java.util.ArrayList;
import java.util.List;

import lombok.Getter;

import org.tangolyricstagger.model.GenreStatistics;

public enum GenreModelProvider {
    INSTANCE;

    @Getter
    private List<GenreStatistics> genres;

    private GenreModelProvider() {
        genres = new ArrayList<GenreStatistics>();
    }

    public void notifyIgnored(String genre) {
        GenreStatistics ignoredGenre = new GenreStatistics(genre, null);
        if (!genres.contains(ignoredGenre)) {
            genres.add(ignoredGenre);
        }
    }

    public void add(String genre, Long count) {
        genres.add(new GenreStatistics(genre, count));
    }

}